from invoke import task # type: ignore

@task
def env(c):
    c.run("poetry run python scripts/creataEnv.py")
    
@task
def start(c):
    c.run("poetry run python src/backend/main.py")

@task
def dev(c):
    c.run("bun dev")

@task
def build(c):
    c.run("bun run build")

@task
def lint(c):
    c.run("bun run lint")

@task
def format(c):
    c.run("bun run format")

@task
def clean(c):
    """清理项目中的临时文件和构建产物"""
    c.run("poetry run python scripts/cleanup.py")

